package com.xbongbong.pro.print.pojo.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 获取子表单数据DTO
 * @author zheng.li
 */
@Setter
@Getter
@ToString
public class SubFormAttrDataDTO extends BaseDTO{

    /**
     * 子表单的attr
     */
    @NotNull(message = "{dto.msg.subFormAttrData.attr.NotNull}")
    private String attr;

    /**
     * 应用id
     */
    private Long appId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.subFormAttrData.formId.NotNull}")
    private Long formId;

    /**
     * 业务类型
     */
    private Integer businessType;

    private Integer del;

    public SubFormAttrDataDTO(){
        del = DelEnum.NORMAL.getDel();
    }
}
